package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BsWarHorseMapper;
import com.ruoyi.system.domain.BsWarHorse;
import com.ruoyi.system.service.IBsWarHorseService;

/**
 * 战马Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-14
 */
@Service
public class BsWarHorseServiceImpl implements IBsWarHorseService 
{
    @Autowired
    private BsWarHorseMapper bsWarHorseMapper;

    /**
     * 查询战马
     * 
     * @param id 战马主键
     * @return 战马
     */
    @Override
    public BsWarHorse selectBsWarHorseById(Long id)
    {
        return bsWarHorseMapper.selectBsWarHorseById(id);
    }

    /**
     * 查询战马列表
     * 
     * @param bsWarHorse 战马
     * @return 战马
     */
    @Override
    public List<BsWarHorse> selectBsWarHorseList(BsWarHorse bsWarHorse)
    {
        return bsWarHorseMapper.selectBsWarHorseList(bsWarHorse);
    }

    /**
     * 新增战马
     * 
     * @param bsWarHorse 战马
     * @return 结果
     */
    @Override
    public int insertBsWarHorse(BsWarHorse bsWarHorse)
    {
        return bsWarHorseMapper.insertBsWarHorse(bsWarHorse);
    }

    /**
     * 修改战马
     * 
     * @param bsWarHorse 战马
     * @return 结果
     */
    @Override
    public int updateBsWarHorse(BsWarHorse bsWarHorse)
    {
        return bsWarHorseMapper.updateBsWarHorse(bsWarHorse);
    }

    /**
     * 批量删除战马
     * 
     * @param ids 需要删除的战马主键
     * @return 结果
     */
    @Override
    public int deleteBsWarHorseByIds(Long[] ids)
    {
        return bsWarHorseMapper.deleteBsWarHorseByIds(ids);
    }

    /**
     * 删除战马信息
     * 
     * @param id 战马主键
     * @return 结果
     */
    @Override
    public int deleteBsWarHorseById(Long id)
    {
        return bsWarHorseMapper.deleteBsWarHorseById(id);
    }
}
